package com.hongmeng.teamwork.service;

import com.hongmeng.teamwork.entity.po.TeamworkProject;

import java.util.Collection;
import java.util.List;

/**
 * (HongmengTeamworkProject)表服务接口
 *
 * @author makejava
 * @since 2023-11-15 16:46:06
 */
public interface ITeamworkProjectService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    TeamworkProject queryById(Long id);

    List<TeamworkProject> queryByIdList(List<Long> idList);

    /**
     * 分页查询
     *
     * @param teamworkProject 筛选条件
     * @return 查询结果
     */
    List<TeamworkProject> queryByCondition(TeamworkProject teamworkProject);

    /**
     * 新增数据
     *
     * @param teamworkProject 实例对象
     * @return 实例对象
     */
    boolean insert(TeamworkProject teamworkProject);

    /**
     * 修改数据
     *
     * @param teamworkProject 实例对象
     * @return 实例对象
     */
    boolean update(TeamworkProject teamworkProject);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);
}
